package com.zfzs.post.modules.agent.service;

import com.zfzs.post.modules.agent.domain.AgentBank;
import com.zfzs.post.modules.agent.service.dto.AgentBankQueryCriteria;
import org.springframework.data.domain.Pageable;

/**
* @author ck
* @date 2019-09-05
*/
public interface AgentBankService {

    /**
    * queryAll 分页
    * @param criteria
    * @param pageable
    * @return
    */
    Object queryAll(AgentBankQueryCriteria criteria, Pageable pageable);

    /**
    * queryAll 不分页
    * @param criteria
    * @return
    */
    Object queryAll(AgentBankQueryCriteria criteria);

    /**
     * findById
     * @param id
     * @return
     */
    AgentBank findById(Long id);

    /**
     * create
     * @param resources
     * @return
     */
    AgentBank create(AgentBank resources);

    /**
     * update
     * @param resources
     */
    void update(AgentBank resources);

    /**
     * delete
     * @param id
     */
    void delete(Long id);

}